#!groovy
@Library(["pipeline-library@master"]) _

node("jenkins-slave-image-mgmt") {
    stage("SETUP: Set logging to verbose") {
        openshift.logLevel(10)
    }

    stage("TEST: Can promote image from one project to another and fail") {
        crossClusterPromote([
                sourceImageName          : "jenkins-slave-ansible",
                sourceImagePath          : "pipelinelib-testing",
                destinationImagePath     : "pipelinelib-promotion-testing",
                targetRegistryCredentials: "doesnt-exist"
        ])
    }
}